package com.jprocms.module.cms.controller.admin.channel.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author jprocms
 */
@Data
@Schema(description = "管理后台 - 栏目批量创建 Request VO")
public class ChannelBatchCreateDto {

    @Schema(description = "父栏目ID", example = "1")
    private Long parentId;

    @Range(min = 1)
    @Schema(description = "模型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long modelId;

    @Valid
    @NotEmpty
    @Schema(description = "栏目名称列表树", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<ChannelBatchCreateNameDto> channelTree;

}
